/* Fonts: loaded on the live page via consulting-solutions-head.phtml (common host) and Google Public Sans. */

/* Adwanted hero animation — responsive web version of "We build tech" */

.adw-hero {
  --adw-navy: #062343;
  --adw-ink: #101418;
  --adw-accent: #32B2AB;
  --adw-bg: #ffffff;

  position: relative;
  container-type: inline-size;
  background: var(--adw-bg);
  overflow: hidden;
}

/* The stage keeps the video's 1920 × 600 proportions on wide screens and
   grows taller on small screens so wrapped text always fits. */
.adw-hero__stage {
  display: grid;
  box-sizing: border-box;
  min-height: 27.65cqi;                       /* 531 / 1920: white space above/below cut by 20% */
  padding: max(32px, 2.4cqi) clamp(20px, 7.6cqi, 180px);
}

.adw-slide {
  grid-area: 1 / 1;
  align-self: center;
  visibility: hidden;
  max-width: 100%;
}

/* Before JS runs, show the first slide so the hero is not empty */
.adw-hero:not(.adw-hero--ready) .adw-slide:first-child {
  visibility: visible;
}

.adw-h {
  margin: 0 0 0.31em;
  font-family: "GT America Extended", "Archivo Black", "Arial Black", sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3.646cqi, 84px);     /* 70px at 1920 */
  line-height: 1.04;
  color: var(--adw-navy);
}
.adw-hl { display: block; }

.adw-b {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: clamp(18px, 1.667cqi, 38px);     /* 32px at 1920; never smaller than the "What we do" text (18px) */
  line-height: 1.4;
  color: var(--adw-ink);
}
/* Body copy flows as one paragraph so a long line never leaves a single
   word stranded on its own line at narrower screen widths. */
.adw-b { text-wrap: pretty; }
.adw-bl { display: inline; }

/* Below 960px the text starts to wrap, so the fixed desktop line breaks
   would leave short, ragged lines. Let each paragraph flow as one. */
@container (max-width: 959.98px) {
  .adw-hl,
  .adw-bl { display: inline; }
  .adw-h { text-wrap: balance; }
  .adw-b { text-wrap: pretty; }
  .adw-qline { margin-top: 0.15em; }
}

/* word masks for the headline slide-up */
.adw-m {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 0.02em 0.12em;
  margin: 0 -0.02em -0.12em;
}
.adw-w { display: inline-block; }

/* slide 4: typed quote + "That's on us." */
.adw-qline {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.5em;
}
.adw-quote,
.adw-onus {
  font-family: "GT America Extended", "Archivo Black", "Arial Black", sans-serif;
  font-weight: 900;
}
.adw-quote { color: var(--adw-accent); }
.adw-onus {
  display: inline-block;
  color: var(--adw-navy);
  transform-origin: 0% 70%;
}
.adw-tw { white-space: nowrap; }
.adw-cur {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  border-radius: 1px;
  background: var(--adw-accent);
  opacity: 0;
  pointer-events: none;
}

/* play / pause / replay */
.adw-hero__toggle {
  position: absolute;
  right: clamp(12px, 1.6cqi, 32px);
  bottom: clamp(12px, 1.6cqi, 32px);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--adw-navy);
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.2s ease;
}
.adw-hero__toggle:hover,
.adw-hero__toggle:focus-visible { opacity: 1; }
.adw-hero__toggle:focus-visible {
  outline: 2px solid var(--adw-accent);
  outline-offset: 2px;
}
.adw-hero__toggle svg { width: 18px; height: 18px; display: block; }

/* screen-reader copy of all the text */
.adw-hero__sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
